<template>
  <div class="mi-video">
    <div class="flex flexbt flexct">
        <h2>视频</h2>
        <div class="all font16 color757575">
          <router-link to="/Video" class="flex line30" target="_blank">
            <span>查看全部&nbsp;</span>
            <span class="font20"><i class="el-icon-circle-plus-outline"></i></span>
          </router-link>
        </div>
    </div>
    <div class="container">
      <div class="wrapper">
        <div class="item" v-for="(item,index) in Items" :key="index">
          <router-link class="pic" :to="'/NewsList/'+item.id">
            <img :src="item.imgUrl">
            <i class="iconfont open">&#xe83d;</i>
          </router-link>
          <div class="content">
            <p class="title singleTxt">{{item.title}}</p>
            <p class="text singleTxt">{{item.text}}</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      selected: '',
      Items: [
        {title: '听雷总讲述小米7年工艺探索之路', text: '小米6，7年工艺探索的巅峰之作', imgUrl: 'https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/101b19aca4bb489bcef0f503e44ec866.jpg', id: '1'},
        {title: '小米6外观设计视频', text: '震惊！小米6竟然如此之美', imgUrl: 'https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/96563e75833ba4563bd469dd28203b09.jpg', id: '2'},
        {title: '小米电视4 外观设计视频', text: '美哭了！史上最美的小米电视', imgUrl: 'https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/2fd26bb99b723337a2f8eaba84f7d5bb.jpg', id: '3'},
        {title: '4.9mm极超薄电视的诞生揭秘', text: '小米电视工程师讲述极致之作的背后故事', imgUrl: 'https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/a8dd25cab48c60fc6387b9001eddc3f9.jpg', id: '4'}
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.line30{line-height: 30px}
.mi-video{
  width: 1226px;
  margin: 0 auto;
  background: #f5f5f5;
  padding-top: 10px;
  h2{
    font-size: 22px;
    font-weight: 200;
    line-height: 58px;
    color: #333;
  }
  .container{
    width: 1226px;
    margin: 0 auto;
    .wrapper{
      display: flex;
      justify-content: space-between;
      align-content: space-between;
      .item{
        transition: all .2s linear;
        width: 24%;
        position: relative;
        background: #fff;
        text-align: center;
        .open{
            position: absolute;
            left: 10px;
            bottom: 10px;
            width: 40px;
            line-height: 26px;
            border: 2px solid #fff;
            text-align: center;
            border-radius: 60px;
            z-index: 3;
            transition: .4s;
            color: #fff;
            font-size: 14px;
          }
        &:hover{
          box-shadow: 0 15px 30px rgba(0,0,0,0.1);
          top: -1px;
          .open{
            background: #ff6700;
            border-color: #ff6700;
          }
        }
        >.pic{
          position: relative;
          display: block;
          img{
            width: 100%;
            height: 180px;
          }
        }
        .content{
          padding: 20px;
          display: block;
          text-align: center;
          .text{
            font-size: 12px;
            line-height: 20px;
            color: #b0b0b0;
          }
          .title{
            font-size: 14px;
            font-weight: 400;
            line-height: 1.25;
            margin-bottom: 5px;
          }
        }
      }
    }
  }
}
</style>
